package edu.spec.dengyan.week03.class01;

public class Test {
    public static void main(String[] args){
        Student s1=new Student("朱小明","323","qqqq");
        Student s2=new Student("茅台","766","dfgq");
        Student s3=new Student("蘑菇头","366","qqqq");
        Student d=new Student("自己","3777","sdeq",18,140.0f);
        Student[] sz=new Student[4];
        sz[0]=s1;
        sz[1]=s2;
        sz[2]=s3;
        sz[3]=d;
        for(Student s:sz)
            System.out.println(s.xm);
    }
}
